//
//  BaseViewController.h
//  Tripvi
//
//  Created by xiaowuxiaowu on 2017/5/5.
//  Copyright © 2017年 xiaowuxiaowu. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface BaseViewController : UIViewController<UITableViewDelegate, UITableViewDataSource>
@property (nonatomic,strong) UILabel * titleLabel;
@property (nonatomic,strong) UIImageView * tpTitleView;

@property (nonatomic,strong)UIButton *leftBtn;
@property (nonatomic,strong)UIButton *rightBtn;
@property (nonatomic,strong)UIBarButtonItem *rightBtnItem;
@property (nonatomic,assign)NSInteger page;
@property (nonatomic,assign)NSInteger sid;
/**
 *  显示大量数据的控件
 */
@property (nonatomic, strong) UITableView *tableView;

/**
 *  初始化init的时候设置tableView的样式才有效
 */
@property (nonatomic, assign) UITableViewStyle tableViewStyle;

/**
 *  大量数据的数据源
 */
@property (nonatomic, strong) NSMutableArray *dataSource;

@property (nonatomic,assign)BOOL isBarWhite;

- (void)leftBtnAction:(UIButton *)sender;
- (void)rightBtnAction:(id )sender;

-(void)refreshFail;
-(void)refreshSccuess;

@end
